package com.example.demo.controller;

import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class Main {
    public static void main(String[] args) {
        City parse = JSONObject.parseObject("", City.class);
        List<City> cityList=new ArrayList<City>();
        List<County> countyList=new ArrayList<County>();
        Map<Long, List<County>> countyMap = new HashMap<>();
        for (City c : cityList) {
            countyMap.put(c.getId(), new ArrayList<County>());
        }
//        for (County co : countyList) {
//            countyMap.get(co.getCityId()).add(co);
//        }
//        RestTemplate restTemplate = new RestTemplate();
//        ResponseEntity<City> d=restTemplate.getForEntity("",City.class);
//
//        City body = d.getBody();
    }
}
